package com.sanploy.wechat.service;

import com.sanploy.common.vo.BaseException;
import com.sanploy.wechat.dto.PayNotify;
import com.sanploy.wechat.dto.PaySign;
import com.sanploy.wechat.dto.WeChatLoginBack;

import javax.servlet.http.HttpSession;
import java.io.IOException;
import java.security.NoSuchAlgorithmException;

/**
 * Created by zhu yingzhi on 2017/9/21.
 */
public interface WechatSmallService {
    public WeChatLoginBack login(String code) throws IOException, BaseException;
    public PaySign unifiedOrder(String openId,double price,String orderId) throws NoSuchAlgorithmException, IOException ; //统一下单接口
    public PayNotify notifyPay(String xml);//支付异步通知
}
